-
Notifications
You must be signed in to change notification settings - Fork 866
Update to Microsoft.Extensions.AI.Abstractions 9.9.0 #3960
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: development
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should be able to plumb edit/variation as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the Microsoft.Extensions.AI.Abstractions package from version 9.7.0 to 9.8.0 and implements new features enabled by the updated library. The changes include setting new ChatMessage properties, handling citations in responses, and adding experimental image generation capabilities.
- Updates Microsoft.Extensions.AI.Abstractions dependency to version 9.8.0 across all project files
- Adds citation support to BedrockChatClient for both streaming and non-streaming responses
- Implements experimental IImageGenerator interface with support for multiple image generation models
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 5 comments.
Show a summary per file
File | Description |
---|---|
BedrockMEAITests.NetFramework.csproj | Updates test project dependency to version 9.8.0 |
ExperimentalAttribute.cs | Adds polyfill for [Experimental] attribute for non-.NET targets |
BedrockImageGenerator.cs | Implements IImageGenerator interface with support for Stability AI and Amazon image models |
BedrockChatClient.cs | Adds CreatedAt property setting, citation handling, and DataContent.Name property usage |
AmazonBedrockRuntimeExtensions.cs | Adds AsIImageGenerator extension method marked as experimental |
AWSSDK.Extensions.Bedrock.MEAI.nuspec | Updates package dependency references to version 9.8.0 |
AWSSDK.Extensions.Bedrock.MEAI.NetStandard.csproj | Updates package reference to version 9.8.0 |
AWSSDK.Extensions.Bedrock.MEAI.NetFramework.csproj | Updates package reference to version 9.8.0 |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
extensions/src/AWSSDK.Extensions.Bedrock.MEAI/BedrockImageGenerator.cs
Outdated
Show resolved
Hide resolved
extensions/src/AWSSDK.Extensions.Bedrock.MEAI/BedrockImageGenerator.cs
Outdated
Show resolved
Hide resolved
extensions/src/AWSSDK.Extensions.Bedrock.MEAI/BedrockChatClient.cs
Outdated
Show resolved
Hide resolved
@@ -18,7 +18,7 @@ | |||
</PropertyGroup> | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add tests for the citation changes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There aren't currently any merged tests for these types in general; I've just been doing basic manual testing. I'd be happy to add some automated tests if there's a standard way you have to do that.
I updated the versions of core and bedrock runtime as well as bumped the nuspec. running through our build system right now and if it passes, will approve |
- Set new ChatMessage.CreatedAt property - Set and use new DataContent.Name property - Added citations to BedrockChatClient - Added implementation of IImageGenerator (as [Experimental] because the interface is itself [Experimental])
Description
Motivation and Context
Light-up new surface area in Microsoft.Extensions.AI.Abstractions.
Testing
Manual testing against various models with basic scenarios.
Screenshots (if appropriate)
Types of changes
Checklist
License